package io.github.cubelitblade.librarymanagementbackend.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("book")
public class Book {
    private Integer id;
    private String title;
    private String author;
    private String isbn;
    @TableField("category_id")
    private Integer categoryId;
    private String img;
    private Integer stock;
    private Integer total;
    private String description;
    @TableField("borrow_count")
    private Integer borrowCount;
    @TableField("favorite_count")
    private Integer favoriteCount;
    @TableField("create_time")
    private LocalDate createTime;
}